package com.hualude.roadsign.model;

import javax.persistence.*;
import java.util.Objects;

/**
 * @Description:
 * @Author: WYX.
 * @Date: 2018/6/8 19:56.
 */
@Entity
@Table(name = "tb_homepage_about", schema = "hualude_db", catalog = "")
public class HomepageAboutEntity {
    private Integer infoId;
    private String orgTele;
    private String orgFax;
    private String orgMail;
    private String orgWebsite;

    @Id
    @Column(name = "InfoId")
    public Integer getInfoId() {
        return infoId;
    }

    public void setInfoId(Integer infoId) {
        this.infoId = infoId;
    }

    @Basic
    @Column(name = "OrgTele")
    public String getOrgTele() {
        return orgTele;
    }

    public void setOrgTele(String orgTele) {
        this.orgTele = orgTele;
    }

    @Basic
    @Column(name = "OrgFax")
    public String getOrgFax() {
        return orgFax;
    }

    public void setOrgFax(String orgFax) {
        this.orgFax = orgFax;
    }

    @Basic
    @Column(name = "OrgMail")
    public String getOrgMail() {
        return orgMail;
    }

    public void setOrgMail(String orgMail) {
        this.orgMail = orgMail;
    }

    @Basic
    @Column(name = "OrgWebsite")
    public String getOrgWebsite() {
        return orgWebsite;
    }

    public void setOrgWebsite(String orgWebsite) {
        this.orgWebsite = orgWebsite;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        HomepageAboutEntity that = (HomepageAboutEntity) o;
        return infoId == that.infoId &&
                Objects.equals(orgTele, that.orgTele) &&
                Objects.equals(orgFax, that.orgFax) &&
                Objects.equals(orgMail, that.orgMail) &&
                Objects.equals(orgWebsite, that.orgWebsite);
    }

    @Override
    public int hashCode() {

        return Objects.hash(infoId, orgTele, orgFax, orgMail, orgWebsite);
    }
}
